<template>
  <Layout.Footer class="footer">
    <div class="footer-content">
      <div class="footer-bottom">
        <div class="copyright">
          <!-- 添加 Gitee Logo -->
          <img src="@/assets/github.svg" alt="Gitee" class="gitee-logo">
          © {{ new Date().getFullYear() }} AI Generator. powered by:
          <a href="https://gitee.com/wangfenghuan3399" target="_blank" class="gitee-link">@wfh</a>
        </div>
        <div class="legal-links">
          <a href="#">关于我们</a>
          <span class="divider">·</span>
          <a href="#">服务条款</a>
          <span class="divider">·</span>
          <a href="#">隐私政策</a>
        </div>
      </div>
    </div>
  </Layout.Footer>
</template>

<style scoped>
.footer {
  background: #f0f2f5;
  padding: 16px 50px;
  margin-top: auto;
  position: relative;
  bottom: 0;
  width: 100%;
  z-index: 10;
  display: block;
}

.footer::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #1668dc, #13c2c2);
}

.footer-content {
  display: flex;
  flex-direction: column;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.copyright {
  color: rgba(0, 0, 0, 0.45);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gitee-logo {
  height: 16px;  /* 调整 Logo 大小 */
  margin-right: 8px;
}

.gitee-link {
  color: #1668dc;  /* 使用 Gitee 的品牌色 */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.gitee-link:hover {
  color: #13c2c2;
}

.legal-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.legal-links a {
  color: rgba(0, 0, 0, 0.65);
  text-decoration: none;
}

.legal-links a:hover {
  color: #1668dc;
}

.divider {
  color: rgba(0, 0, 0, 0.15);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .footer {
    padding: 12px 16px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .copyright {
    flex-direction: column;
    align-items: center;
  }

  .gitee-logo {
    margin-bottom: 4px;
  }
}
</style>
